package com.shijianchen.utils;

//class CommonService
//{
//    const API_SECRET_KEY = 'sdksdksdcfsd';//接口加密秘钥
//
//    const HTTP_CODE_FAIL = 100;//失败
//    const HTTP_CODE_REFUND = 101;//退款余额不足
//    const HTTP_CODE_SUCCESS = 200;//成功
//    const HTTP_CODE_NOT_LOGIN = 300;//未登录
//    const HTTP_CODE_BIND_MOBILE = 400;//绑定手机号
//    const HTTP_CODE_NOT_AUTH = 500;//无权限
//    const HTTP_DOCKING_CODE_NOT_AUTH = 2001;//未登录授权
//
//    const IS_DELETE_NOT = 0;//未删除
//    const IS_DELETE_YES = 1;//已删除
//
//    const GOODS_IS_DELETE_NOT = 2;//未删除
//    const GOODS_IS_DELETE_YES = 1;//已删除
//
//    const USER_STATUS_NOT = 0;//非正常/冻结
//    const USER_STATUS_YES = 1;//正常
//
//    const SHOP_ENABLE = 1;//正常
//    const SHOP_DISABLE = 2;//禁用
//
//    const PAGESIZE = 10;//分页数量
//
//}



public enum ResultCode {
//    API_SECRET_KEY("'sdksdksdcfsd'","接口加密秘钥"),
    HTTP_CODE_FAIL("失败",100),
    HTTP_CODE_REFUND("退款余额不足",101),
    HTTP_CODE_SUCCESS("成功",200),
    HTTP_CODE_NOT_LOGIN("未登录",300),
    HTTP_CODE_BIND_MOBILE("绑定手机号",400),
    HTTP_CODE_NOT_AUTH("无权限",500),
    HTTP_DOCKING_CODE_NOT_AUTH("未登录授权",2001),
    IS_DELETE_NOT("未删除",0),
    IS_DELETE_YES("已删除",1),
    ERROR("未知错误",502);
    private final String name;
    private final Integer status;

    public Integer getStatus() {
        return status;
    }

    public String getName() {
        return name;
    }

    private ResultCode(String name, Integer status){
        this.name = name;
        this.status = status;
    }
}
